<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>浮动影响盒子布局</title>
    <style>
       .one{
           width: 500px;
           border: 5px solid red;
       }
       .bw1{
           float: left;
           width: 600px;
           height: 300px;
           background-color: violet;
       }
       .bw2{
           float: left;
           width: 250px;
           height: 250px;
           background-color: skyblue;
       }
       .two{
           width: 700px;
           height: 150px;
           background-color: gold
       }
       .clearfix:after { 
            content: ""; 
            display: block;
             height: 0;
              clear:both; 
              visibility: hidden; 
       }   
        .clearfix {*zoom: 1;}  
         /* IE6、7 专用 */
    </style>
</head>
<body>
    <div class="one clearfix">
        <div class="bw1"></div>
        <div class="bw2"></div>
    </div>
    <div class="two"></div>
</body>
</html>